import {request} from "./requestConfig.js"


export function getCartDetailData(){
    return request({
        url:"/cart/cartInfo",
        method: "post"
    })
}

export function updateCartGoodsNumData(data){
    return request({
        url:"/cart/num",
        method: "post",
        data
    })
}


export function addCart(data){
    return request({
        url:"/cart/",
        method: "post",
        data
    })
}

export function getCartCount(){
    return request({
        url:"/cart/counts",
        method: "post",
    })
}


export function deleteCartGoods(data){
    return request({
        url:"/cart/delete",
        method: "post",
        data
    })
}